<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@page import="com.carcenter.service.UserinfoService"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title></title>
		<link rel="stylesheet" type="text/css" href="/carcenter/css/style_new.css" />
	</head>
	<body>
		<div class="header">
			<div class="logo">
				<img src="/carcenter/images/logo.gif" alt="" title="" border="0" />
			</div>
			<div id="menu">
				<ul>
					<li>
						<a href="/carcenter/selectCarinfo.action">新车浏览</a>
					</li>
					<li>
						<a href="/carcenter/usedCarinfo.action">二手市场</a>
					</li>
					<li>
						<a href="/carcenter/selectAgency.action">经销商信息</a>
					</li>
					<li>
						<a href="/carcenter/getAllMaintain.action">汽车保养</a>
					</li>
					<li>
						<a href="/carcenter/detailUser.action">个人信息</a>
					</li>
					<li>
						<a href="/carcenter/news/newsList.jsp">最新消息</a>
					</li>
					<li>
						<a href="/carcenter/news/xinshoubangzhu.jsp">新手帮助</a>
					</li>
					<li>
						<a href="/carcenter/news/changjianwenti.jsp">常见问题</a>
					</li>
					<%
						Integer currUserId = (Integer)session.getAttribute("uid");
						UserinfoService serv = new UserinfoService();
						boolean flag = serv.isManager(currUserId);
						if(flag){
					%>
					<li>
						<a target="_blank" href="/carcenter/manager/default.jsp">管理后台</a>
					</li>
					<%} %>
					<%
						if(currUserId != null){
					%>
					<li>
						<a href="/carcenter/user/login.jsp">退出</a>
					</li>
					<%} %>
				</ul>
			</div>
		</div>
	</body>
</html>
